<template>
    <div class="container">
        <!-- <img src="../assets/img/9.jpg" alt=""> -->
        <!--<slider speed='2000'></slider>-->
        <h3 class="alert alert-info">通知</h3>
        <ul>
  <div class="gun">
    <table class="table table-bordered" style="margin-top: 80px">
      <thead style="text-align: center">
        <tr>
          <th>序号</th>
          <th>标题</th>
          <th>日期</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="(info, index) in infos" :key="index">
          <td>{{ info.noticeId }}</td>
          <td><router-link :to="{ path: 'noticeinfo', query: { noticeId: info.noticeId }}">
            <span>{{info.noticeTitle}}</span>
          </router-link></td>
          <td>{{ info.noticeTime }}</td>
        </tr>
      </tbody>
    </table>
  </div>
        </ul>
    </div>
</template>
<script>
export default{
    name: "Stu_notice",
data(){
    return{
        infos:[]
    }
},

mounted(){
    this.$axios
    .get('http://10.197.26.58:8001/getTnoticeList')
    .then(response=>{
        this.infos=response.data.slice(0,100)
        console.log(this.infos)
    })
    .catch(function(error) {
        //请求失败处理
        console.log(error);
    });
  }
};
</script>

